package model

import zio.json.{DeriveJsonDecoder, DeriveJsonEncoder, JsonDecoder, JsonEncoder}

case class BaseEventFields(
    group_id: Long,
    `type`: String,
    event_id: String,
    v: String
)

object BaseEventFields {
  val empty: BaseEventFields = BaseEventFields(0, "", "", "")

  given JsonDecoder[BaseEventFields] = DeriveJsonDecoder.gen[BaseEventFields]
  given JsonEncoder[BaseEventFields] = DeriveJsonEncoder.gen[BaseEventFields]
}
